﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MvcApplication2.Models.Faculty>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	FacultyDetails
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Выбор факультета</h2>

    <table>
        <tr>
            
            
            <th>
                Название факультета
            </th>
           
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
           <!-- <td>
                <%: Html.ActionLink("Edit", "Edit", new { id=item.id }) %> |
                <%: Html.ActionLink("Details", "Details", new { id=item.id })%> |
                <%: Html.ActionLink("Delete", "Delete", new { id=item.id })%>
            </td>-->

            <td>
                
                <%: Html.ActionLink(item.name, "SpecialityDetails", new { id = item.id })%> 
            </td>
           <!-- <td>
                <%: item.id %>
            </td>-->
           <!-- <td>
                <%: item.name %>
            </td>-->
           <!-- <td>
                <%: item.idhe %>
            </td>-->
        </tr>
    
    <% } %>

    </table>

   
   <p>
        <%: Html.PadingNavigator2((int)Html.ViewData["PageNum"], (int)Html.ViewData["ItemsCount"], (int)Html.ViewData["PageSize"])%>
       
    </p>
</asp:Content>

